<?php

namespace App\Library\Requests\BuyWill;

use App\Library\Rules\ValidationEncryptUserIdRule;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

class BuyWillRandRequest extends FormRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, ValidationRule|array|string>
     */
    public function rules(): array
    {
        return [
            'userId' => ['required', 'string', new ValidationEncryptUserIdRule]
        ];
    }
}
